<?php
namespace Addons\Common\Model;
use Think\Model;

class CommonModel extends Model{
       public function store($data){
           $action=isset($data['bid'])?'save':'add';
           $res=$this->$action($data);
           return $res;
       }

}